package com.desaysv.hicar.IProxy.proxy.impl;

import android.util.Log;

import com.desaysv.hicar.IProxy.ProxyFactory;
import com.desaysv.hicar.IProxy.proxy.IProxyInstance;

/**
 * @author linzi
 * @date 2022-7-18
 */
public  class Proxy2 implements IProxyInstance<Proxy2> {
    private final static String TAG= Proxy2.class.getName();
    public Proxy2(){
        Log.d(TAG,"proxy2");
        if (ProxyFactory.getFactory().checkInit(this.getClass())) {
            throw new RuntimeException("has init !!! please use ProxyFactory.getProxy(Proxy2.class) to get instance for this class");
        }
    }
    @Override
    public Proxy2 getInstance() {
        return this;
    }

    public void print2(){
        print3();
    }
    private void print3(){
        Log.d(TAG,"proxy222222222222222222");
    }
}
